/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


@import "params.less";

.emailselector {
    border: 1px solid @borderColor2;
    cursor: text;
    display: block;
    margin: 0;
    max-height: 70px;
    min-height: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    position: relative;
    background-color: @back-ground-text;
}

.emailselector-hidden-input {
    left: -10000px;
    position: absolute;
    width: 1px;
}

.emailselector-item {
    border: 1px solid;
    border-color: @menu-selected-bg;
    background-color: @menu-selected-bg;
    display: inline-block;
    font-size: 12px;
    height: 16px;
    line-height: normal;
    margin: 2px;
    max-width: 43%;
    overflow: hidden;
    padding: 0 20px 0 6px;
    position: relative;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    -moz-text-overflow: ellipsis;
    -webkit-text-overflow: ellipsis;
    vertical-align: middle;
    cursor: pointer;
    float: left;
}

.emailselector-item:hover {
    border-color: @emailselector-item-hover;
}

.emailselector-item.error {
    background-color: @emailselector-item-error;
    border-color: @emailselector-item-error;
}

.emailselector-item.selected {
    border-color: @emailselector-item-hover;
}

.emailselector-item.edit {
    padding: 0;
}

.emailselector-item.edit .emailselector-item-text {
    display: none;
}

.emailselector-item.edit .emailselector-item-close {
    display: none;
}

.emailselector-item-close {
    background-color: @body-color;
    border: 0 none;
    border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    color: @textColorBlackDark;
    cursor: pointer;
    font-size: 12px;
    font-weight: 100;
    height: 12px;
    line-height: 12px;
    position: absolute;
    right: 3px;
    text-align: center;
    top: 2px;
    width: 12px;
    vertical-align: middle;
}

.emailselectorr-item-input:focus {
    border: none !important;
}

.emailselector-input {
    border: medium none !important;
    display: inline-block;
    font-size: 12px;
    float: left;
    height: 18px;
    line-height: normal;
    margin: 2px;
    max-width: 98%;
    min-width: 50px;
    padding: 0;
}

.emailselector-input:disabled {
    width: 0;
    margin: 0;
    min-width: 0;
}

.emailselector-hidden-input {
    border: medium none !important;
    display: inline-block;
    font-size: 12px;
    float: left;
    height: 18px;
    line-height: normal;
    margin: 2px;
    max-width: 45%;
    min-width: 50px;
    padding: 0;
}

.emailselector-input:focus, .emailselector-hidden-input:focus {
    border: none !important;
}

.emailSelector-input-buffer {
    left: 0;
    position: absolute;
    top: -20px;
    visibility: hidden;
    max-width: 98%;
    min-width: 50px;
}